package ex3;

public class YearWorker extends Employee {
	double yearEarnings;
	
	public YearWorker(double yearEarnings) {
		super();
		this.yearEarnings = yearEarnings;
	}

	public double earnings() {
		return yearEarnings;
	}
}
